package org.jash.learnmvp.news;

import org.jash.learnmvp.entity.CategoryEntity;
import org.jash.learnmvp.entity.NewsEntity;
import org.jash.learnmvp.mvp.BaseModel;

import io.reactivex.rxjava3.core.Observable;

public class NewsModel extends BaseModel implements ConStruct.INewsModel {

    @Override
    public Observable<NewsEntity> getTopHot() {
        return service.getTopHot();
    }

    @Override
    public Observable<CategoryEntity> getNewsCategory() {
        return service.getNewsCategory();
    }
}
